package org.example.feign;

import org.example.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "type-service",path = "/type")
public interface TypeFeign {
    @GetMapping("/updateNum")
    public Boolean updateNum(@RequestParam("tid") Integer tid, @RequestParam("num") Integer num);
    @GetMapping("/selectId")
    public Result selectId(Integer tid);
}
